home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global DirectionUp
- set DirectionSpeed to 1
- set LastTick to the ticks
- set OriginalTick to the ticks
- repeat while (the ticks - OriginalTick) < 80
- set y to DirectionSpeed * (the ticks - LastTick)
- set LastTick to the ticks
- set the locV of sprite 15 to the locV of sprite 15 - y
- if (the locV of sprite 15 < 100) or (the locV of sprite 15 > 200) then
- set DirectionSpeed to -DirectionSpeed
- end if
- updateStage()
- end repeat
- end
-
- on mouseUp
- go(80)
- end
-